//计划明细
import request from '@/axios/axios.js'
//编辑
export const editProductionPlanDetailApi = (params) => {
    return request({
        method: 'put',
        url: '/api/planDetail/update',
        data: params
    })
}
//新增
export const addProductionPlanDetailApi = (params) => {
    return request({
        method: 'post',
        url: '/api/planDetail/save',
        data: params
    })
}
// 删除
export const deleteProductionPlanDetailApi = (params) => {
    return request({
        method: 'delete',
        url: '/api/planDetail/delete',
        data: params
    })
}
//查询
export const ProductionPlanDetailApi = (params) => {
    return request({
        method: 'post',
        url: '/api/planDetail/getPage',
        data: params
    })
}

//工艺路线


export const allRouteApi = (params) => {
    return request({
        method: 'post',
        url: '/api/basedataProcessRoute/getPage',
        data: params
    })
}

//产品表
export const productAllApi = (params) => {
    return request({
        method: 'post',
        url: '/api/basedataProduct/getAll',
        data: params
    })
}

//物料bom查询
export const materialBomApi = (params) => {
    return request({
        method: 'post',
        url: '/api/basedataMaterialBom/getPage',
        data: params
    })
}
//下发

export const issuePlan = (params) => {
    return request({
        method: 'post',
        url: '/api/planDetail/issuePlan',
        data: params
    })
}
